<template>
    <div>
        <h3>新闻组件</h3>
        <ul>
            <li v-for="(item,index) in list" :key="index">
                <router-link :to="'/detail/'+index">{{item}}</router-link>
            </li>
        </ul>
    </div>
    
</template>
<script>
export default {
    name:'News',
    data(){
        return{
            list:['123','123','123','1234']
        }
    },
    methods:{

    }
}
</script>
<style scoped>

</style>